<div class="header">
  <back-Btn></back-Btn>
  材料订单
</div>
<div class="container finance task-review">
  <div class="list f_sk">
    <div user-info no="TaskReview.result.fileNo" depname="TaskReview.result.departmentName"
      date="TaskReview.result.applyDate" username="TaskReview.result.userName"></div>
    <div class="section">
      <div class="list-item flex">
        <div class="w40 c9">仓库名称 </div>
        <div class="w60" relative-module="Material_MaterialWarehouse" module-no="{{TaskReview.result.warehouseNo }}">
          {{TaskReview.result.warehouseName}}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.projectName">
        <div class="w40 c9">所属项目 </div>
        <div class="w60" relative-module="Xm_ProjectStore" module-no="{{TaskReview.result.projectNo }}">
          {{TaskReview.result.projectName}}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.contractName">
        <div class="w40 c9">合同名称 </div>
        <div class="w60" relative-module="{{TaskReview.result.contractType}}"
          module-no="{{TaskReview.result.contractNo  }}">
          {{TaskReview.result.contractName}}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.supplierName">
        <div class="w40 c9">供应商 </div>
        <div class="w60">{{ TaskReview.result.supplierName }}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.orderPerson">
        <div class="w40 c9">下单人 </div>
        <div class="w60">{{ TaskReview.result.orderPerson }}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.orderDate">
        <div class="w40 c9">下单日期 </div>
        <div class="w60">{{ TaskReview.result.orderDate|dateFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">订单税额 </div>
        <div class="w60">{{ TaskReview.result.taxAmount|NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">订单金额 </div>
        <div class="w60">{{ TaskReview.result.totalAmount|NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">金额大写 </div>
        <div class="w60">{{ TaskReview.result.amountInWorld }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">已下单 </div>
        <div class="w60" ng-switch="TaskReview.result.completion">
          <div ng-switch-when="0">
            否
          </div>
          <div ng-switch-when="1">
            是
          </div>
        </div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.remark">
        <div class="w40 c9">备注 </div>
        <div class="w60">{{ TaskReview.result.remark }}
        </div>
      </div>
      <!-- 自定义字段 -->
      <div checkuser-define field-map="TaskReview.result.customFields"></div>
      <!-- 附件 -->
      <div class="file-upload" file-list checked="true" file-data="TaskReview.result.attachment"></div>
      <div class="list table-list" ng-show="TaskReview.result.details.length">
        <div class="info-title">订单材料明细 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.details">
          <div class="list-item">
            <div class="item-label">来源 </div>
            <div class="flow-content" ng-switch="item.soruceType">
              <div ng-switch-when="0">
                手填
              </div>
              <div ng-switch-when="1">
                清单
              </div>
              <div ng-switch-when="2">
                仓库
              </div>
              <div ng-switch-when="3">
                计划
              </div>
              <div ng-switch-when="4">
                采购
              </div>
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">材料名称 </div>
            <div class="flow-content">{{ item.name }}</div>
          </div>
          <div class="list-item" ng-show="item.spec">
            <div class="item-label">规格型号 </div>
            <div class="flow-content">{{ item.spec }}</div>
          </div>
          <div class="list-item" ng-show="item.brand">
            <div class="item-label">品牌特性 </div>
            <div class="flow-content">{{ item.brand }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">采购数量 </div>
            <div class="flow-content">{{ item.quantity }}{{ item.unit }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">单价(元) </div>
            <div class="flow-content">{{ item.price|NBFmt }}</div>
          </div>
          <div class="list-item" ng-show="item.taxRate">
            <div class="item-label">税率 </div>
            <div class="flow-content">{{ item.taxRate }}%</div>
          </div>
          <div class="list-item">
            <div class="item-label">税额 </div>
            <div class="flow-content">{{ item.taxAmount |NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">总价(元) </div>
            <div class="flow-content">{{ item.totalPrice |NBFmt }}</div>
          </div>
          <div class="list-item" ng-show="item.remarks">
            <div class="item-label">备注 </div>
            <div class="flow-content">{{ item.remarks }}</div>
          </div>
        </div>
      </div>
    </div>
    <!-- 审查日志 -->
    <div log-list taskid="process_id"></div>
  </div>
</div>